Imports Microsoft.VisualBasic

Namespace MyDAO
    Public Class MyCompositeExpression
        Inherits MyDataExpressionBase

        Public Expression1 As MyDataExpressionBase
        Public op As MyDataOperator
        Public Expression2 As MyDataExpressionBase

        Public Sub New(ByVal exp1 As MyDataExpressionBase, ByVal op As MyArithmeticOperator, ByVal exp2 As MyDataExpressionBase)
            Me.Expression1 = exp1
            Me.op = op
            Me.Expression2 = exp2
        End Sub

        Public Overrides Function ToString() As String

            Return String.Format("{0} {1} {2}", Me.Expression1, Me.op, Me.Expression2)
        End Function
    End Class
End Namespace
